package Card;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2025-03-03
 * Time: 18:00
 */
public class Main {
    public static void main(String[] args) {
        // 1.生成 52 张牌
        CardDemo cardDemo = new CardDemo();
        List<Card> cardList = cardDemo.GenerateCard();
        System.out.println(cardList);
        // 2.把这52张牌给打乱了
        cardDemo.suffle(cardList);
        System.out.println(cardList);
        // 3.3个人，每个人轮流揭开5张牌
        List<List<Card>> hand = cardDemo.play(cardList);
        //循环输出二维顺序表的内容：
        for (int i = 1; i <= hand.size(); i++) {
            System.out.println("第 " + i + " 个人手里的牌：" + hand.get(i-1));
        }

        System.out.println("剩余的牌：" + cardList);
    }
}
